/******************************************************************************
 Copyright (c) 2022 Qualcomm Technologies International, Ltd.
 All Rights Reserved.
 Qualcomm Technologies International, Ltd. Confidential and Proprietary.

 REVISION:      $Revision: #14 $
******************************************************************************/

#ifndef GATT_XPAN_SERVER_HANDOVER_H_
#define GATT_XPAN_SERVER_HANDOVER_H_

#include "csr_synergy.h"

#ifndef EXCLUDE_GATT_XPAN_SERVER_MODULE

#include "service_handle.h"
#include "csr_bt_profiles.h"
/*#include "gatt_xpan_server.h" */
#include "csr_bt_gatt_prim.h"

bool gattXpanServerHandoverMarshal(ServiceHandle serviceHandle,
                                   ConnectionId cid,
                                   uint8 *buf,
                                   uint16 length,
                                   uint16 *written);

bool gattXpanServerHandoverUnmarshal(ServiceHandle serviceHandle,
                                     ConnectionId cid,
                                     const uint8 *buf,
                                     uint16 length,
                                     uint16 *consumed);

void gattXpanServerHandoverCommit(ServiceHandle serviceHandle, ConnectionId cid, const bool newRole);

void gattXpanServerHandoverAbort(ServiceHandle serviceHandle);

void gattXpanServerHandoverComplete(ServiceHandle serviceHandle, const bool newRole );

bool gattXpanServerHandoverVeto(ServiceHandle serviceHandle);

#endif /* EXCLUDE_GATT_XPAN_SERVER_MODULE */

#endif /* GATT_XPAN_SERVER_HANDOVER_H_ */
